package com.twu.biblioteca;

/**
 * Created by charlieg on 21/07/2014.
 */
public class Book{
    private String title;
    private String author;
    private boolean available = true;

    public Book(String title, String author){ //Creates a book with author and title.
        this.title = title;
        this.author = author;
    }

    public String getAuthor(){
        return author;
    }

    public String getTitle(){
        return title;
    }

    public boolean isAvailable(){
        return available;
    }

    public void setAvailable(boolean available){ //Set the availability of the book.
        this.available = available;
    }
}
